/*
 * @Descripttion: 账户
 * @version:
 * @Author: cxguo
 * @Date: 2019-08-02 15:03:05
 * @LastEditors  : cxguo
 * @LastEditTime : 2019-12-30 14:41:22
 */
import axios from '@/utils/request'
const baseUrl = '/sys_employee'

export function addData(params) {
  return axios.request({
    url: `${baseUrl}/add`,
    method: 'post',
    data: params
  })
}

export function delListData(params) {
  return axios.request({
    url: `${baseUrl}/delete`,
    method: 'post',
    data: params
  })
}

export function updateData(params) {
  return axios.request({
    url: `${baseUrl}/update`,
    method: 'post',
    data: params
  })
}

export function listData(params) {
  return axios.request({
    url: `${baseUrl}/list`,
    method: 'post',
    data: params
  })
}

/**
 * 模糊查询
 * @param {*} params
 */
export function options(params) {
  return axios.request({
    url: `${baseUrl}/options`,
    method: 'post',
    data: params
  })
}

export function getdataById(params) {
  return axios.request({
    url: `${baseUrl}/get_data_by_id`,
    method: 'post',
    data: params
  })
}

